package com.garden.spingboot_garden.service;

import com.garden.spingboot_garden.pojo.User;
import com.garden.spingboot_garden.pojo.dto.UserDto;

public interface UserService {
    /**
     * 插入用户
     * @param userDto
     */
    User add(UserDto userDto);

    /**
     * 查询用户
     * @param userid
     */
    User get(Integer userid);

    /**
     * 更改用户
     * @param userDto
     */
    User update(UserDto userDto);

    /**
     * 删用户
     * @param userid
     */
    void delete(Integer userid);
}
